﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.Service.Entities
{
    public class Order : BaseEntity
    {
        public long UserId { get; set; }    // 该订单用户id

        public virtual User User { get; set; }// 该订单对应的用户

        public string Guid { get; set; }    // 该订单的订单编号

        //public bool IsBuy { get; set; } // 是否已经支付该订单

        /// <summary>
        /// 订单状态Id  
        /// </summary>
        public long StatusId { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public IdName Status { get; set; }

        public float Amount { get; set; }   //付款金额

        public long ReceiptId { get; set; }    // 该订单发票类型Id

        public virtual IdName Receipt { get; set; }

        public long? AddressId { get; set; } // 该订单的收货地址

        public virtual Address Address { get; set; }

        public long PayWayId { get; set; }    // 该订单的支付方式

        public virtual IdName PayWay { get; set; }

        public long ExpressId { get; set; } //  该订单的快递方式

        public virtual IdName Express { get; set; }

        public string LeaveWord { get; set; }   // 该订单的留言

    }
}
